﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RandomExpert.aspx.cs" Inherits="lcs.Web.tenderExpert.RandomExpert" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script type="text/javascript">

        function OpenPop(val, w, h) {
            if (true == window.showModalDialog(val, window.self, "dialogwidth=" + w + ";dialogheight=" + h + ";")) {
                __doPostBack('btn_reload', 'btn_reload_Click');
            }

        }

        function OpenPopWin(val, w, h) {
            //window.showModalDialog(val,window.self,"dialogwidth="+w+";dialogheight="+h+";")

            window.open(val, 'newwindow', "height=" + h + ",width=" + w + ",toolbar=yes,scrollbars=yes");
        }

    </script>
    <style type="text/css">
        .style1 {
            width: 100%;
        }

        .tdleft {
            height: 15px;
            text-align: right;
        }

        .tdright {
            text-align: left;
        }

        .style2 {
            text-align: center;
            font-weight: bold;
            height: 15px;
        }

        body {
            font-size: 10pt;
        }

        .auto-style1 {
            text-align: left;
            height: 15px;
        }

        .auto-style2 {
            height: 15px;
        }
    </style>
    <link href="../../css/myStyle.css" rel="stylesheet" />

    <link href="../style.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table cellspacing="1" class="style1">
                <tr>
                    <td class="style2" colspan="2">抽取专家
                    </td>
                </tr>
                <tr>
                    <td class="style2" colspan="2">&nbsp;</td>
                </tr>
                <tr>
                    <td class="tdleft">专家所属专业：
                    </td>
                    <td class="tdright">

                        <asp:CheckBoxList ID="cblexpertMajor" runat="server" TextAlign="Left">
                             <asp:ListItem>商务综合</asp:ListItem>
                            <asp:ListItem>输电线路</asp:ListItem>
                            <asp:ListItem>配电</asp:ListItem>
                            <asp:ListItem>基建</asp:ListItem>
                            <asp:ListItem>服务类</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td class="tdleft">抽取商务专家人数：</td>
                    <td class="tdright">
                        <asp:TextBox ID="txt_randomSWCount" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txt_randomSWCount" ErrorMessage="*请填写数字" ValidationExpression="^[0-9]*$" Display="Dynamic"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txt_randomSWCount" ErrorMessage="*请填写人数"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tdleft">抽取技术专家人数：
                    </td>
                    <td class="tdright">
                        <asp:TextBox ID="txt_randomJSCount" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_randomJSCount" ErrorMessage="*请填写数字" ValidationExpression="^[0-9]*$" Display="Dynamic"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_randomJSCount" ErrorMessage="*请填写人数"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tdleft">招标编号：</td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txt_zbbh" runat="server" Width="300px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_zbbh" ErrorMessage="*请填写招标编号"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tdleft">项目名称：</td>
                    <td class="tdright">
                        <asp:TextBox ID="txt_projectName" runat="server" Width="300px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_projectName" ErrorMessage="*请填项目名称"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tdleft">是否市公司：</td>
                    <td class="tdright">
                        <asp:RadioButton ID="rdo_yes" runat="server" Checked="True" GroupName="iss" Text="是" />
                        <asp:RadioButton ID="rdo_no" runat="server" GroupName="iss" Text="否" />
                    </td>
                </tr>
                <tr>
                    <td class="tdleft">纪委监督员：</td>
                    <td class="auto-style1">
                        <asp:DropDownList ID="ddljwjdy" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tdleft">&nbsp;</td>
                    <td class="tdright">&nbsp;</td>
                </tr>
                <tr>
                    <td style="text-align:center;"  colspan="2">
                        <asp:Button ID="btn_confirm" runat="server" OnClick="btn_confirm_Click"
                            Text="随机抽选专家" Width="109px" />
                        <asp:Label ID="lbl_warn" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tdleft">&nbsp;
                    </td>
                    <td class="auto-style1"></td>
                </tr>
                <tr>
                    <td colspan="2" class="auto-style2">
                        <strong>抽选结果</strong></td>
                </tr>
                <tr>
                    <td colspan="2" class="auto-style2">
                        

                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:GridView ID="gridView" align="center" runat="server" AutoGenerateColumns="False"
                            BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv"
                            GridLines="None" Width="100%" PageSize="30"
                            DataKeyNames="expertConfirmId">
                            <Columns>
                                <asp:TemplateField ControlStyle-Width="30" HeaderText="选择所要移除的专家" Visible="False">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="DeleteThis"  runat="server" /> 
                                    </ItemTemplate>

                                    <ControlStyle Width="30px"></ControlStyle>
                                </asp:TemplateField>

                                <asp:BoundField DataField="tenderNum" HeaderText="招标编号" SortExpression="expertName" ItemStyle-HorizontalAlign="Center">
                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="projectname" HeaderText="项目名称"></asp:BoundField>

                                <asp:TemplateField HeaderText="商务专家">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("sExpertrName") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lbl_swzj" runat="server" Text='<%# Bind("sExpertrName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="技术专家">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("jExpertName") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lbl_jszj" runat="server" Text='<%# Bind("jExpertName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:BoundField DataField="randomName" HeaderText="抽取人" />
                                <asp:BoundField DataField="time" HeaderText="时间" />
                            </Columns>
                            <PagerStyle CssClass="mypager" />

                        </asp:GridView>
                                <asp:Panel ID="pnl_cz" runat="server" Visible ="false">
                                <asp:Label ID="lbl_result" runat="server" Font-Bold="True" Font-Size="12pt" ForeColor="Red"></asp:Label>
                                &nbsp;是否重新抽选：<asp:DropDownList ID="ddl_isReRandom" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_isReRandom_SelectedIndexChanged">
                                    <asp:ListItem>否</asp:ListItem>
                                    <asp:ListItem>是</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;&nbsp;<asp:Button ID="btn_ReRandom" runat="server" Text="重新抽选" Visible="False" OnClick="btn_ReRandom_Click" />
                                &nbsp;&nbsp;<asp:Button ID="btn_print" runat="server" Text="打印抽选结果" OnClick="btn_print_Click" />
                                    </asp:Panel>
                                <asp:Panel ID="pnl_no" runat="server" Visible ="false">

                                    <asp:Button ID="btn_confirm_re" runat="server" OnClick="btn_confirm_re_Click" Text="重新抽选专家" Width="109px"  />

                                    <asp:Label ID="lbl_warnNo" runat="server" Font-Bold="True" Font-Size="12pt" ForeColor="Red"></asp:Label>

                                </asp:Panel>
                                <asp:Timer ID="Timer1" runat="server" Interval="2000" OnTick="Timer1_Tick"></asp:Timer>
                            </ContentTemplate>

                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lbl_warn1" runat="server" Text="" Font-Bold="True" ForeColor="Red"></asp:Label></td>
                </tr>
                <tr>
                    <td colspan="2" class="auto-style2">
                        <asp:Button ID="btn_printExpert" runat="server"  Text="打印抽选结果" OnClick="btn_printExpert_Click" Visible="False" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="auto-style2">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2" class="auto-style2">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="tdleft">&nbsp;</td>
                    <td class="tdright">&nbsp;</td>
                </tr>
                <tr>
                    <td class="tdleft">&nbsp;</td>
                    <td class="tdright">&nbsp;</td>
                </tr>
            </table>
        </div>
        
    </form>
</body>
</html>
